package com.c3w.synchro.member.service;

import com.c3w.synchro.common.dao.BeanDao;
import com.c3w.synchro.common.service.BeanService;
import com.c3w.synchro.member.bean.Coach;
import com.c3w.synchro.member.validator.MemberValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * User: magirard
 * Date: 12-11-14
 */
@Service("coachService")
public class CoachServiceImpl extends BeanService<Coach> implements CoachService{
    @Autowired
    private BeanDao<Coach> coachDao;

    @PostConstruct
    public void initService() {
        setBeanDao(coachDao);
        setBeanValidator(new MemberValidator<Coach>());
    }
}
